Monolog\Handler\SocketHandlerTest S

Total Complexity 27
Dependencies 2
Dependents 0
Total lines 316
Lines of code 197
Logical lines of code 104
Comment lines 39
Methods 23
Properties 2

Methods 23

Method Rating Maintainability Complexity Lines of code
setMockHandler()
S
50 5 30
testWriteFailsIfStreamTimesOut()
S
57 1 17
testWriteFailsOnIncompleteWrite()
S
59 1 15
testWriteFailsOnIfFwriteReturnsFalse()
S
60 1 14
testWriteWithMock()
S
60 1 14
testAvoidInfiniteLoopWhenNoDataIsWrittenForAWritingTimeoutSeconds()
S
63 1 11
writeRecord()
S
79 1 3
createHandler()
S
76 1 4
testCloseDoesNotClosePersistentSocket()
S
68 1 8
testClose()
S
68 1 7
testWriteWithMemoryFile()
S
67 1 8
testInvalidHostname()
S
77 1 4
testBadConnectionTimeout()
S
76 1 4
testExceptionIsThrownIfCannotSetTimeout()
S
69 1 7
testExceptionIsThrownOnPfsockopenError()
S
67 1 8
testExceptionIsThrownOnFsockopenError()
S
69 1 7
testSetConnectionString()
S
76 1 4
testSetChunkSize()
S
73 1 5
testSetWritingTimeout()
S
73 1 5
testSetTimeout()
S
73 1 5
testBadTimeout()
S
76 1 4
testSetConnectionTimeout()
S
73 1 5
testExceptionIsThrownIfCannotSetChunkSize()
S
67 1 8